
$(function () {
    $("#logout").on("click",function () {
        $.ajax({
            url:"/api/user/logout",
            success:function (data) {
                /*console.log(data)*/
                if(!data.code){
                    location.href="http://localhost:3000/";
                 /*   location.reload();*/
                }
            }
        })
    })
});